class User:
    name=""
    age=0


user=User()
user.name="zhangsan"
user.age=18
print(f"打印对象属性,name:{user.name},age:{user.age}")
#打印类属性
print(f"打印类属性,name:{User.name},age:{User.age}")
User.name="lisi"
User.age=20
print(f"打印对象属性,name:{user.name},age:{user.age}")
print(f"打印类属性,name:{User.name},age:{User.age}")